package com.nq.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class StFundApply implements Serializable {
    private static final long serialVersionUID = 1L;

    // 买入成功
    public static final String STATUS_SUCCESS = "0";
    // 部分卖出
    public static final String STATUS_PARTIAL_REDEMPTION = "1";
    //全部卖出
    public static final String STATUS_FULL_REDEMPTION = "2";
    // 购买失败
    public static final String STATUS_FAILURE = "3";


    @TableId(type = IdType.AUTO,value = "id")
    private Integer id;

    private Integer fundId;
    private String orderNumber;
    private Integer userId;
    private BigDecimal manageProp;
    // 购买的基金金额
    private BigDecimal purchaseAmount;
    // 买卖时的当前基金的价格
    private BigDecimal initPrice;
    // 购买份额
    private BigDecimal purchaseShare;

    // 状态：0、购买成功 1、部分赎回，2、全部赎回 3 购买失败
    private String status;
    // 购买时间
    private Date addTime;
    // 开始收益时间
    private Date beginTime;
    // 结束收益时间
    private Date endTime;
}
